﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Configuration;
using MySql.Data.MySqlClient;


/// <summary>
/// Summary description for DBAcess
/// </summary>
public class DBAcess
{
    MySqlConnection conn;
    public DBAcess()
    {
        ConnectionStringSettings settings = ConfigurationManager.ConnectionStrings["MySqlConnectionString"];
        conn = new MySqlConnection(settings.ConnectionString);
    }

    public void open()
    {
        conn.Open();
    }
    public void close()
    {
        conn.Close();
    }

    public MySql.Data.MySqlClient.MySqlConnection returnCon()
    {
        return conn;
    }

    
}